package com.crm.business.crm.mapper;

import com.crm.business.servlet.BaseMapper;
import com.crm.common.crm.common.CrmModel;
import com.crm.common.crm.entity.PO.CrmAgreement;
import com.crm.common.ka.core.entity.BasePage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CrmAgreementMapper extends BaseMapper<CrmAgreement> {


    public CrmModel queryById(@Param("id") Long id);

    public Integer num(CrmAgreement crmAgreement);

    public BasePage<Map<String, Object>> queryAgreement(BasePage<Map<String, Object>> crmAgreementBaseMapper, @Param("customerId")Long customerId, @Param("customerType")String customerType, @Param("userIds") List<Long> authUserIdList);
}
